package com.ruipengkj.testCase;

import java.util.Date;

import org.junit.Test;

import com.ruipengkj.bean.TUser;
import com.ruipengkj.commons.BuildSpringApplication;
import com.ruipengkj.service.TUserService;

public class UserServiceTest {
	
	private TUserService userService=BuildSpringApplication.getInstance().getTUserServiceImpl();
	
	@Test
	public void testSaveService(){
		TUser u=new TUser();
		u.setUserID("A23123456789");
		u.setPwd("123456");
		u.setUserName("juffer");
		u.setBirthDate("1990-5-5");
		u.setBuyCount(10);
		u.setBuyerScore(1.1);
		u.setCardNum("A0001001010101");
		u.setCity("广州");
		u.setCompanyID("123");
		u.setCreateTime(new Date());
		u.setEMail("448003636@qq.com");
		u.setIDPicURL("http://192.168.1.1");
		u.setLastLoginTime(new Date());
		u.setLocation("天河");
		u.setLoginTimes(10);
		u.setMailCheckCode("1235232");
		try {
			userService.saveService(u);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
}
